import { defineStore } from 'pinia'

const usePermission = defineStore('permission', {
  state: () => ({
    controlToken: '',
    loginToken: ''
  }),
  actions: {
    setAccessToken(token) {
      this.controlToken = token
      localStorage.setItem('video_token', token)
    },
    setLoginToken(token) {
      this.loginToken = token
    }
  }
})
export default usePermission
